package com.hdsx.netty.rpcserver.nio.provider;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;

/**
 * @author 占贤银
 * time 2024/8/15 15:05
 * description 生命之灯因热情而点燃，生命之舟因拼搏而前行
 */
@Component
public class NioAplicationContextAware implements ApplicationContextAware, InitializingBean {

    private ApplicationContext applicationContext;
    @Override
    public void afterPropertiesSet() {

    }

    @Override
    public void setApplicationContext(ApplicationContext applicationContext)
            throws BeansException {
        this.applicationContext = applicationContext;
    }
}
